package com.ddone.spring5.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author ddone
 * @date 2024/3/21-02:35
 */
@Data
@Component("user4")
@PropertySource("classpath:jdbc.properties")
public class User {
    @Value("${jdbc.username}")
    private String account;

    @Value("${jdbc.password}")
    private String pwd;
}
